package Day7;

public class AbstractTest {

    abstract class Moo{
        abstract int add(int a, int b);
    }


    //class Moo{
      //  private final int a;
       // private final int b;
       // public Moo(int a, int b){
         //   this.a = a;
        //    this.b = b;
        //}
   // }


    abstract class Animal{
        abstract void eat();
      //  Animal animal = new Animal();
        class Dog extends Animal {
            @Override
            void eat() {
                System.out.println("Dog is eating");
            }
      }
      Animal dog = new Dog();
    }



    class Cow extends Moo{
        @Override
        int add(int a, int b) {
            return a+b;
        }
    }
}
